[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
ellipse() Draw an Elliptical Arc
#include <graphics.h>
void far ellipse(x,y,start,end,xrad,yrad);
int x, y;
int start, end;
int xrad, yrad;
ellipse() draws an elliptical arc. ('x','y') are the coordinates of
its center. 'xrad' is the horizontal axis and 'yrad' is the vertical
axis. The ellipse is drawn from 'start' to 'end'. (To draw a
complete ellipse, 'start' = 0 and 'end' = 360.)
Returns: Nothing.
-------------------------------- Example ---------------------------------
The following statements draw two intersecting ellipses.
#include <graphics.h>
#include <conio.h>
main()
{
int gdriver = DETECT;
int gmode;
initgraph(&gdriver,&gmode,"");
ellipse(320,100,0,360,100,50);
ellipse(320,100,0,360,50,100);
getch();
closegraph();
}
See Also:
arc()
circle()
getarccoords()
getaspectratio()
pieslice()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson